home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / mpu401c / mpusexcl.c < prev    next >
C/C++ Source or Header  |  1986-11-02  |  456b  |  24 lines

  1. /* Copyright (C) 1986 by M. J. Shannon, Jr.
  2. ** Permission to distribute for non-commercial uses granted as long as this
  3. ** notice is retained.  Violators will be prosecuted.
  4. */
  5.  
  6. #include    "mpu.h"
  7.  
  8. /* mpu_sexcl():
  9. **    request permission to, then send a system exclusive message.
  10. */
  11.  
  12. void
  13. mpu_sexcl(ep)
  14. register unsigned char *ep;
  15. {
  16.     mpu_put(REQ_SSYS);
  17.     do
  18.     {
  19.         (void) mpu_drr();
  20.         outp(MPUP_DATA, *ep);
  21.     }
  22.     while (*ep++ != MIDI_EOX);
  23. }
  24.